---
section: "downloads"
aliases:
- /download/linux
---

<div id="main">
  <h1>Download for Linux and Unix</h1>
  <p>It is easiest to install Git on Linux using the preferred package
  manager of your Linux distribution. If you prefer to build from
  source, you can find tarballs
  <a href="https://www.kernel.org/pub/software/scm/git/">on kernel.org</a>.
  The latest version is
  <a href="https://www.kernel.org/pub/software/scm/git/git-{{< site-param latest_version >}}.tar.gz">{{< site-param latest_version >}}</a>

  <h3>Debian/Ubuntu</h3>
  <p>For the latest stable version for your release of Debian/Ubuntu</p>
  <code># apt-get install git</code>
  <p>For Ubuntu, this PPA provides the latest stable upstream Git version</p>
  <code># add-apt-repository ppa:git-core/ppa</code><br>
  <code># apt update; apt install git</code>

  <h3>Fedora</h3>
  <code># yum install git</code> (up to Fedora 21)<br>
  <code># dnf install git</code> (Fedora 22 and later)

  <h3>Gentoo</h3>
  <code># emerge --ask --verbose dev-vcs/git</code>

  <h3>Arch Linux</h3>
  <code># pacman -S git</code>

  <h3>openSUSE</h3>
  <code># zypper install git</code>

  <h3>Mageia</h3>
  <code># urpmi git</code>

  <h3>Nix/NixOS</h3>
  <code># nix-env -i git</code>

  <h3>FreeBSD</h3>
  <code># pkg install git</code>

  <h3>Solaris 9/10/11 (<a href="https://www.opencsw.org">OpenCSW</a>)</h3>
  <code># pkgutil -i git</code>

  <h3>Solaris 11 Express, OpenIndiana</h3>
  <code># pkg install developer/versioning/git</code>

  <h3>OpenBSD</h3>
  <code># pkg_add git</code>

  <h3>Alpine</h3>
  <code>$ apk add git</code>

  <h3>Red Hat Enterprise Linux, Oracle Linux, CentOS, Scientific Linux, et al.</h3>
  <p>RHEL and derivatives typically ship older versions of git. You can <a href="https://www.kernel.org/pub/software/scm/git/">download a tarball</a> and build from source, or use a 3rd-party repository such as <a href="https://ius.io/">the IUS Community Project</a> to obtain a more recent version of git.</p>

  <h3>Slitaz</h3>
  <code>$ tazpkg get-install git</code>

</div>
